package com.lz.feibo;

import java.util.Scanner;

public class Fibnaqie2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("请输入要查询的月份:");
		 Scanner scanner=new Scanner(System.in);
		int b=scanner.nextInt();
		int fibon[] = new int[20];
		int count = 0;
		fibon[0] = 1;
		fibon[1] = 1;
		for (int i = 2; i < 12; i++) {
			fibon[i] = fibon[i - 1] + fibon[i - 2];
		}
		for (int j : fibon) {
			
		}
		if (b==1||b==2) {
			System.out.println("第"+b+"月份的兔子对数为"+fibon[0]);
		}else{
			System.out.println("第"+b+"月份的兔子对数为"+fibon[b-1]);

		}

//			System.out.print(j + "\t");
//			count++;
//			if (count % 4 == 0) {
//				System.out.println();
//			}
//		}
	}

}
